package fr.curriculumvitae.anthony.stephan.activities;

import com.neopixl.pixlui.components.textview.TextView;

import fr.curriculumvitae.anthony.stephan.R;
import android.app.Activity;
import android.os.Bundle;
import android.text.Html;
import android.text.method.LinkMovementMethod;

public class AboutActivity extends Activity {
	
	private TextView tvThanks;
	
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_about);
		
		this.tvThanks = (TextView) this.findViewById(R.id.textView_about_thanks);
		this.tvThanks.setMovementMethod(LinkMovementMethod.getInstance());
		this.tvThanks.setText(Html.fromHtml(
									getResources().getString(R.string.about_thanks_1) + " " +
									"<a href=\"" + getResources().getString(R.string.about_thanks_link_1) + "\">" +
									getResources().getString(R.string.about_thanks_link) + "</a>" ));
	}

}
